import pymysql

conn = pymysql.connect('112.74.124.220', 'dengqihua', 'dengqihua520', 'phpdoc')
cursor = conn.cursor()
cursor.execute('select * from pages limit 10')
data = cursor.fetchall()
print(data)
cursor.close()
conn.close()